package com.cqqs.controller.dto.req.concat;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author mjxie
 * @date 2022/09/23
 */
@Data
@ApiModel("新增联系人入参")
public class ContactSaveReq implements Serializable {

    @ApiModelProperty(value = "姓名")
    @NotNull(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "座机")
    @NotNull(message = "座机不能为空")
    private String phone;

    @ApiModelProperty(value = "手机")
    @NotNull(message = "手机不能为空")
    private String mobile;

    @ApiModelProperty(value = "email")
    private String email;

    @ApiModelProperty(value = "单位")
    @NotNull(message = "单位不能为空")
    private String unit;

    @ApiModelProperty(value = "部门")
    @NotNull(message = "部门不能为空")
    private String department;

    @ApiModelProperty(value = "角色")
    @NotNull(message = "角色不能为空")
    private String role;
}
